/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2024-09-18
 * Time: 23:26
 */
public class Show implements IOPeration{
    @Override
    public void work(bookList b) {
        System.out.println("显示图书.....");
        System.out.println("书名"+"\t\t"+"作者"+"\t\t"+"类型"+"\t"+"价格"+"\t"+"入馆状态");
        for (int i = 0; i < b.number; i++) {
            System.out.println(
                    b.list[i].getBookName()+"\t"
                    +b.list[i].getAuthor()+"\t" +
                    b.list[i].getType()+"\t"+
                    b.list[i].getPrice()+"\t"+
                    b.list[i].isCondition());
        }

    }
}
